<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php echo $base_url;?>style/images/logo.ico" type="image/x-icon" />
<link rel="icon" href="<?php echo $base_url?>style/img/animated_favicon.gif" type="image/gif">
<title>BE - <?php echo $page_title; ?></title>
<script language="javascript" src="<?php echo $base_url?>style/js/BE/jquery.js"></script>
</head>
<body>
<?php require APPPATH . "views/common/header_admin.php" ?>
<link rel="stylesheet" type="text/css" href="<?php echo $base_url?>style/css/css_admin.css" />
<!-- begin Body -->
<div id="post_wrapper">
  <div class="seperator"></div>
  <ul id="<?php echo $page_id?>" style="margin:10px; border:1px solid #CCC; padding-bottom:10px;">
  	<?php if ($page_name!="admin_home"){?>
    <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#f3f3f3" style="margin:auto; margin-top:10px;border:1px solid #CCC;">
      <tr>
        <td>
        	<div class="title4" id="title"><span style="text-transform:uppercase;">QUẢN LÝ <?php echo $page_title;?></span></div>
          <div class="title5">
            <?php if ($is_addnew!=""){?>
            <div class="link_add">
                <a href="<?php echo $base_url.$link_page_name;?>/add" class="lk1" id="link_add" style="color:#00F;">Thêm mới<img src="<?php echo $base_url?>style/img/add.jpeg" width="15" height="15" style="float:left; padding-right:4px;" border="0" /></a>
            </div>
            <?php } ?>
            <?php if ($is_addlist == ""){?>
            <div class="link_list">
                <a href="<?php echo $base_url.$link_page_name;?>" class="lk1" id="link_add" style="color:#00F;">Danh sách <span style="text-transform:capitalize;"><?php echo $page_title;?></span><img src="<?php echo $base_url?>style/img/list.jpg" width="15" height="15" style="float:left; padding-right:4px;" border="0" /></a>
            </div>
            <?php } ?>
            <?php if ($is_news_auto == "AUTO"){?>
            <div class="link_list">
                <input type="button" name="getAutoNews" id="getAutoNews" value="Lấy tin tự động" onclick="NewsFeed.getNewsAuto();" style="width: 120px; height: 24px; margin-top: -3px" />
            </div> 
            <?php } ?>
          </div>
        </td>
      </tr>
    </table>
    <?php } ?>
    <?php require APPPATH . "views/" . $page_name . '.php' ?>
		    
  </ul>
</div>
<!-- end Body   -->
<div id="seperator"></div>
<!-- begin footer-->
<?php require APPPATH . "views/common/footer_admin.php" ?>
</body>
</html>